<#assign form=JspTaglibs["http://www.springframework.org/tags/form"] />
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/jquery.js"></script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function() {
		$("#save").click(function(){
		 	document.register.action="register/save";
		 	document.register.submit();
		 });
	});
</script>
</head>
<body>
	<@form.form name="register" modelAttribute="registerBean" method="post">
		username:<@form.input path="username" /><@form.errors path="username" />
		password:<@form.input path="password" />
		<input id="save" type="button" value="submit" />
	</@form.form>
</body>
</html>